﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Security.Principal;
using System.Text;
using System.Threading.Tasks;

namespace FoodModel
{
    /// <summary>
    /// 菜品表
    /// </summary>
    [Table("DishesModel")]
    public class DishesModel
    {
        /// <summary>
        /// 菜品表ID
        /// </summary>
        [Key]
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public int DishId { get; set; }
        /// <summary>
        /// 菜品名称
        /// </summary>
        public string? DishesName { get; set; }
        /// <summary>
        /// 菜品图片
        /// </summary>
        public string? DishesImgs { get; set; }
        /// <summary>
        /// 菜品介绍
        /// </summary>
        public string? DishesIntroduce { get; set; }
        /// <summary>
        /// 销售价
        /// </summary>
        public bool SalesPrice { get; set; }
        /// <summary>
        /// 价格
        /// </summary>
        public decimal DishesPrice { get; set; }
        /// <summary>
        /// 库存
        /// </summary>
        public int Inventory { get; set; }
        /// <summary>
        /// 菜品规格id
        /// </summary>
        public int SpecificationId { get; set; }
        /// <summary>
        /// 菜品口味
        /// </summary>
        public bool DishesTaste { get; set; } 
        /// <summary>
        /// 口味名称
        /// </summary>
        public string? TasteName { get; set; }
        /// <summary>
        /// 口味Id
        /// </summary>
        public int TasteId { get; set; }
        /// <summary>
        /// 菜品id
        /// </summary>
        public int GroupingId { get; set; }
        /// <summary>
        /// 售卖时段
        /// </summary>
        public int Selling { get; set; }
        /// <summary>
        /// 营业时间:(星期)
        /// </summary>
        public string? WeekDate { get; set; }
        /// <summary>
        /// 营业时间段
        /// </summary>
        public string? BusinessTimeOne { get; set; }
        /// <summary>
        /// 营业时间段
        /// </summary>
        public string? BusinessTimeTwo { get; set; }
        /// <summary>
        /// 总数量
        /// </summary>
        public int DishesNum { get; set; }
    }
}
